<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>箭头函数和解构</title>
    <script>
        const person = {
            name: "jack",
            age: 21,
            language: ['java', 'js', 'css']
        };

        function hello(person) {
            console.log("hello," + person.name);
        }

        hello(person);
        let heihei = ({name}) => console.log("hello," + name);
        hello(person);
    </script>
</head>
<body>

</body>
</html>